Formalising Type-Logical Grammars in Agda
نویسنده
چکیده
In recent years, the interest in using proof assistants to formalise and reason about mathematics and programming languages has grown. Type-logical grammars, being closely related to type theories and systems used in functional programming, are a perfect candidate to next apply this curiosity to. The advantages of using proof assistants is that they allow one to write formally verified proofs about one’s type-logical systems, and that any theory, once implemented, can immediately be computed with. The downside is that in many cases the formal proofs are written as an afterthought, are incomplete, or use obtuse syntax. This makes it that the verified proofs are often much more difficult to read than the pen-andpaper proofs, and almost never directly published. In this paper, we will try to remedy that by example. Concretely, we use Agda to model the LambekGrishin calculus, a grammar logic with a rich vocabulary of type-forming operations. We then present a verified procedure for cut elimination in this system. Then we briefly outline a CPS translation from proofs in the Lambek-Grishin calculus to programs in Agda. And finally, we will put our system to use in the analysis of a simple example sentence.
منابع مشابه
Second Year Progress Report
This progress report is about equation-based modelling languages. In particular, the report discusses work [4] on formalising semantic aspects of Functional Hybrid Modelling (FHM) [12] – a hybrid, structurally dynamic, non-causal modelling language – in the dependently-typed programming language Agda [13]. Section 2 gives a preliminary outline of equation-based languages and FHM. Section 3 give...
متن کاملA Mechanisation of Internal Galois Connections In Order Theory Formalised Without Meets
Using the the dependently-typed programming language Agda, we formalise orders, with attention to the theory of Galois Connections, and showcase it by formalising a few results of the category of algebraic contexts with relational homomorphisms presented by Jipsen (2012); Moshier (2013). We aim to exhibit an internal theory of Galois Connections and Closure operators where the ambient space nee...
متن کاملProof-relevant π-calculus
Formalising the π-calculus is an illuminating test of the expressiveness of logical frameworks and mechanised metatheory systems, because of the presence of name binding, labelled transitions with name extrusion, bisimulation, and structural congruence. Formalisations have been undertaken in a variety of systems, primarily focusing on well-studied (and challenging) properties such as the theory...
متن کاملNormalisation by Evaluation for Type Theory, in Type Theory
We develop normalisation by evaluation (NBE) for dependent types based on presheaf categories. Our construction is formulated in the metalanguage of type theory using quotient inductive types. We use a typed presentation hence there are no preterms or realizers in our construction, and every construction respects the conversion relation. NBE for simple types uses a logical relation between the ...
متن کاملCertified CYK parsing of context-free languages
We report a work on certified parsing for context-free grammars. In our development we implement the Cocke–Younger–Kasami parsing algorithm and prove it correct using the Agda dependently typed programming language.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1709.00728 شماره
صفحات -
تاریخ انتشار 2017